
@REM 接口测试并生成测试结果
cd D:\reports\newman
newman run "D:\project\vscode\himart-test\tests\api_tests\newman_tests\api_collection_test.json"  --reporters html  --reporter-html-export "D:\reports\newman\index.html"
newman run "D:\project\vscode\himart-test\tests\api_tests\newman_tests\api_collection_test.json"  --reporters allure --reporter-allure-export "D:\reports\newman\newman-results"
@REM 生成allure风格的接口测试报告
allure generate  "D:\reports\newman\allure-results"  -o "D:\reports\newman\allure--report"



@REM 压力测试并生成测试结果
cd D:\reports\jmeter
jmeter -n -t "D:\project\vscode\test\tests\stress_tests\jmeter.jmx" -l "D:\reports\jmeter\jmeter.jtl" -e -o  "D:\reports\jmeter\jmeter-reports"



@REM 功能测试并生成测试结果
pytest --alluredir=D:\reports\allure\allure-results .
@REM 生成allure风格的功能测试报告
allure generate "D:\reports\allure-results" -o "D:\reports\allure-report" --clean


@REM 远程查看
将 D:\reports\allure-report下的文件复制到远程服务器主机/root/dost/allure/allure-reports/
将 D:\reports\jmeter\jmeter-reports下的文件复制到远程服务器主机/root/dost/jmeter/jmeter-reports/
将 D:\reports\newman\allure--report下的文件复制到远程服务器主机/root/dost/allure/newman/newman-reports/